<?php 
if (!defined('RAPIDLEECH')){
  require_once("../404.php");exit;
}

echo "\r\n\r\n";
?>

<style type="text/css">


</style>

<div id="bodycontainer">
 <center>
 <div class="container"> 
   <div class="left_side">   
<?php
if($options["navi_left"]["showcpanel"]){
  if(isset($options["xpanel_filename"]) && @file_exists($options["xpanel_filename"])){
 ?>
 <div><a href="<?php echo ROOT_URL.$options["xpanel_filename"];?>" id="left_cpanel" class="nav-leftimg" target="_blank" title="<?php echo $L->say['cpanel'];?>"><span><?php echo $L->say['cpanel'];?></span></a></div>
 <?php
 }
}

if($options["navi_left"]["showplugins"]){
?>
<div><a href="javascript:;" onclick="ddir=document.getElementById('dir'); if(ddir.style.display!=''){ddir.style.display='';}else{ddir.style.display='none';}" id="left_plugin" class="nav-leftimg" title="<?php echo $L->say['plugins'];?>"><span><?php echo $L->say['plugins'];?></span></a></div>
<div align="center" class="splugins"><?php echo '<b><small>'.count($host).'</small></b> Plugins'; ?></div>
<div id="dir" dir="rtl" align="left" style="overflow-y:scroll; height:150px; padding-left:5px; display:none;"></div>
<script type="text/javascript">
var arHost = Array(
<?php
ksort($host); $cm = "";
foreach($host as $site => $file)
 { echo "$cm'$site'"; $cm = ", "; }
?>
);
function inserthost(arHost){
  var dtpl = '', d = document;
  for(var i=0; i < arHost.length; i++)
   {  dtpl += '<span class=&quot;c&quot;>' + arHost[i] + '<\/span><br \/>';}
  d.getElementById('dir').innerHTML = dtpl;
}
setTimeout("inserthost(arHost)", 100);
</script>
<?php
}
if($options["navi_left"]["showaudl"]){
?>
<div><a href="<?php echo ROOT_URL;?>audl.php" id="left_audl" class="nav-leftimg" target="_blank" title="<?php echo $L->say['audl'];?>"><span><?php echo $L->say['audl'];?></span></a></div>
<?php
}
if($options["navi_left"]["showauul"]){
?>
<div><a href="<?php echo ROOT_URL;?>auul.php" id="left_auul" class="nav-leftimg" target="_blank" title="<?php echo $L->say['auul'];?>"><span><?php echo $L->say['auul'];?></span></a></div>
<?php
}
if($options["navi_left"]["showlynx"]){
?>
<div><a href="<?php echo ROOT_URL;?>lynx.php" id="left_lynx" class="nav-leftimg" target="_blank" title="<?php echo $L->say['lynx'];?>"><span><?php echo $L->say['lynx'];?></span></a></div>
<?php
}
?>

<div id="left_NFO">
 <center><img style="padding-top:10px;" src="<?php echo ROOT_URL.IMAGE_DIR;?>fbload.gif" border="0" alt="<?php echo $L->say['loading_pwait']?>" /></center>
</div>
<div id="nfoconfig" style="height:120px; display:none;"></div>
   </div><!--  END "left_side"  //-->
   
   <div class="mid_side">
    <noscript><br /><b><?php echo $L->say['js_disable'];?></b></noscript>
	<div class="menuUtama">
	<ul>
	 <li id="navcell1" onclick="switchCell(1);"><a href='javascript:;'>Main</a></li>
     <li id="navcell2" onclick="switchCell(2);"><a href='javascript:;'>Config</a></li>
     <li id="navcell3" onclick="switchCell(3);"><a href='javascript:;'>Server Files</a></li>
     <li id="navcell4" onclick="switchCell(4);"><a href='javascript:;'>Validator</a></li>
     <li id="navcell5" onclick="switchCell(5);"><a href='javascript:;'>RS Checker</a></li>
	</ul>	
    </div><!--  END "menuUtama"  //-->
	<div class="tb_content">
	 <?php if($options["limitbyip"] && $ada_acc && ($trheute > $options["maximum_free_downloads"])){ ?>
     <div align="center" style="font-size:15px;"><br />
	  <?php echo $msgNya;?><div><?php echo $L->say['sorry_inc'];?></div><br />
	 </div>
     <?php } ?>
	 
	 <form action="<?php echo $PHP_SELF; ?>" method="post">
	  <div id="tb1" class="tab-content"<?php if($options["limitbyip"] && $trheute > $options["maximum_free_downloads"]){ echo ' style="display:none;"';}?>>
	  <?php if( (isset($limitation_alert) && $limitation_alert) || ($options["limitbyip"] && $ada_acc && ($trheute > $options["maximum_free_downloads"]))) {
      ?>
      <div class="warn_container">
       <div style="padding-top:20px;"><div class="warn_alert"><?php echo $limitmsg;?></div></div>
       <div class="warn_alert" style="height:auto;"><?php echo $limit_msg;?></div>
       <div style="padding-bottom:15px;">&nbsp;</div>
      </div><!--  END "warn_container"  //-->
	  
      <?php } // End warn_container ; download not allowed
	        else { ?>
	  
      <div class="main_download">
	   <p align="left"><b><?php echo $L->say['link_transload'];?></b><br />&nbsp;<input type="text" name="link" id="link" size="50" /></p>
       <p align="left"><b><?php echo $L->say['referrer'];?></b><br />&nbsp;<input type="text" name="referer" id="referer" size="50" /></p>
      
       <div style="padding-top:25px;">&nbsp;</div><input type="submit" value="<?php echo $L->say['_transload'];?>" />
	   <?php 
       if(isset($options["mip_enabled"]) && $options["mip_enabled"]){
         $mip_action = "select";  // select || download
         if(file_exists(CLASS_DIR."mip.php")) @include_once(CLASS_DIR."mip.php");
       }
       ?>
	   <p align="left"><label for='add_comment'><input type="checkbox" name="add_comment" id="add_comment" onClick="javascript:var displ=this.checked?'':'none';document.getElementById('comment').style.display=displ;" />&nbsp;<?php echo $L->say['add_comment'];?></label></p>
	   <div id="comment" style="DISPLAY: none;"><textarea name="comment" class="redtxtarea" rows="4" style="width:370px;"></textarea></div>  

       <div class="submain_download">
	    <br /><small class='subtitle'><?php echo $L->say['user_stats'];?></small>
        <?php if($options["limitbyip"] && $ada_acc) { echo $L->say['limit_leech']; }?><hr />
        <?php if ($options["OnlineVisitor"]) {?>
         <div><?php echo $L->say['user_online'];?>&nbsp;<b class="g"><?php echo $visitors->online['total'];?></b></div>
        <?php } ?>
        <?php echo $L->say['detect_ip'].' <b>'.$ipmu.' </b>';?>
        <?php if($options["logact"]) {?> <small class="y"><?php echo $L->say['logged'];?></small>
        <?php } ?>
        <?php if($ref!=''){ echo '<br />'.$L->say['referrer'].': <small>'.$ref.'</small>';} ?>
        <?php
        if($options["limitbyip"] && $ada_acc){
           echo $L->sprintf( $L->say['already_use_premix'], $heute, $options["maximum_free_downloads"], $options["delay_per_ip"] );
        }
        ?>
		<div style="height:5px;">&nbsp;</div><small class='subtitle'><?php echo $L->say['server_stats'];?></small><hr />
        <?php echo $L->say['current_storage'];?>&nbsp;<b class="g"><?php echo bytesToKbOrMbOrGb($serverfiles);?></b>&nbsp;&nbsp;&nbsp;
        <?php if($options["storage_limit"]>0){?>
        	Max: <b class="r"><?php echo bytesToKbOrMbOrGb($options["storage_limit"]*1024*1024)?></b>
		<?php } ?>
		<?php if($options["limitbytraffic"]){ ?>
        	<br /><?php echo $L->say['current_traffic']?>&nbsp;
			<b class='g'><?php echo bytesToKbOrMbOrGb($traffic->total);?></b>&nbsp;
			<?php echo $L->say['of']?>&nbsp;<span class="s" title="<?php echo $L->say['max_traffic'];?>">
			<b><?php echo bytesToKbOrMbOrGb($traffic->max);?></b></span>&nbsp;
			<?php if($traffic->expiredate) { echo $L->say['until'];?>&nbsp;
			<small><span class='g'><?php echo date("d-M-Y", $traffic->expiredate);?></span></small>
			<?php } ?>
            <?php if($options["day_reset_trafic"] > 0) { ?>
        	  <br /><?php echo $L->say['reset_traffic_remain'];?>
        	  &nbsp;<small class="s"><?php echo sec2time( $traffic->timeremain() );?></small>
        	<?php } ?>
        <?php } // End limitbytraffic ?>
		<?php if($options["limit_timework"]) { ?>
          <br /><?php echo $L->say['_timework'];?>:&nbsp;<b class="s"><?php echo $options["workstart"];?></b>&nbsp;
		  <?php echo $L->say['upto'];?>&nbsp;<b class="s"><?php echo $options["workend"];?></b>
        <?php } // End limit_timework?>
        <?php if(is_array($deleted) && $deleted["count"] > 0){ ?>
        <div style="height:5px;">&nbsp;</div>
        <small class='subtitle'><?php echo $L->say['log_act'];?></small>
        <div id='log_activity' class='acthistory_prompt'>
         <b class="g"><?php echo $deleted["count"];?></b>&nbsp;
         <?php echo $L->say['lact_files'];?>&nbsp;
         <?php echo $L->say['lact_autodeleted'];?>
         <label onclick='return slip(this);' style='float:right;'>" .
         <span id='act_hist_txt'><?php echo $L->say['show_last_act'];?></span>
         <input id='act_hist_img' type='image' src='<?php echo IMAGE_DIR;?>plus.png' /></label>
         <div id='act_history' class='acthistory_result' style='display:none;'>
          <pre style='margin:0;'>
          <?php foreach($deleted["files"] as $file){
            echo "* " . htmlentities($file) . "\n";
          } ?>
          </pre>
		 </div>
        </div>
        <?php } ?>
		
		
	   </div><!--  END "submain_download"  //-->	   
	   
	  </div><!--  END "main_download"  //-->
	  <?php } // End main_download ; download allowed ?>
	  </div><!--  END "tab-content"; tb1  //-->
	  
	  <div id="tb2" class="hide-table">

        <table align="left" width="300">
        <tr><td>
        <label><input type="checkbox" name="domail" id="domail" onClick="javascript:document.getElementById('emailtd').style.display=document.getElementById('splittd').style.display=this.checked?'':'none';document.getElementById('methodtd').style.display=(document.getElementById('splitchkbox').checked && this.checked)?'':'none';"<?php echo isset($_COOKIE["domail"]) ? " checked" : ""; ?> />&nbsp;<?php echo $L->say['send_email'];?></label>
        <table id="emailtd"<?php echo isset($_COOKIE["domail"]) ? "" : " style=\"display: none;\""; ?>><tr><td><?php echo $L->say['email'];?>&nbsp;<input type="text" name="email" id="email"<?php echo isset($_COOKIE["email"]) ? " value=\"".(isset($_COOKIE["email"])?$_COOKIE["email"]:"")."\"" : ""; ?> /></td></tr></table>
        </td></tr>
        <tr id="splittd"<?php echo isset($_COOKIE["split"]) ? "" : " style=\"display: none;\""; ?>>
        <td style="padding-bottom:10px ;">
        <label><input id="splitchkbox" type="checkbox" name="split" onClick="javascript:var displ=this.checked?'':'none';document.getElementById('methodtd').style.display=displ;"<?php echo isset($_COOKIE["split"]) ? " checked" : ""; ?> />&nbsp;<?php echo $L->say['split_file'];?></label>
        <table id="methodtd"<?php echo isset($_COOKIE["split"]) ? "" : " style=\"display: none;\""; ?>>
        <tr><td>
        <table><tr><td>
        <?php echo $L->say['method'];?>&nbsp;
         <select name="method">
          <option value="tc"<?php echo isset($_COOKIE["method"]) && $_COOKIE["method"]== "tc" ? " SELECTED='SELECTED'" : ""; ?>><?php echo $L->say['tot_com'];?></option>
          <option value="rfc<?php echo isset($_COOKIE["method"]) && $_COOKIE["method"] == "rfc" ? " SELECTED='SELECTED'" : ""; ?>"><?php echo $L->say['rfc'];?></option>
         </select>
         </td></tr>
        <tr>
        <td><?php echo $L->say['part_size'];?>&nbsp;<input type="text" name="partSize" size="2" value="<?php echo isset($_COOKIE["partSize"]) ? $_COOKIE["partSize"] : 10; ?>" />&nbsp;MB</td>
        </tr></table>
        </td></tr>
        </table>
        </td>
        </tr>
        <tr><td>
        <label><input type="checkbox" id="useproxy" name="useproxy" onClick="javascript:var displ=this.checked?'':'none';document.getElementById('tblproxy').style.display=displ;"<?php echo isset($_COOKIE["useproxy"]) ? " checked" : ""; ?> />&nbsp;<?php echo $L->say['use_proxy'];?></label>
        <table id="tblproxy"<?php echo isset($_COOKIE["useproxy"]) ? "" : " style=\"display: none;\""; ?>>
        <tr><td>
        <table width="150">
        <tr><td><?php echo $L->say['_proxy'];?>&nbsp;</td><td><input type="text" name="proxy" id="proxy" size="20"<?php echo isset($_COOKIE["proxy"]) ? " value=\"".(isset($_COOKIE["proxy"])?$_COOKIE["proxy"]:"")."\"" : ""; ?> /></td></tr>
        <tr><td><?php echo $L->say['_uname'];?>&nbsp;</td><td><input type="text" name="proxyuser" id="proxyuser" size="20" <?php echo isset($_COOKIE["proxyuser"]) ? " value=\"".(isset($_COOKIE["proxyuser"])?$_COOKIE["proxyuser"]:"")."\"" : ""; ?> /></td></tr>
        <tr><td><?php echo $L->say['_pass'];?>&nbsp;</td><td><input type="text" name="proxypass" id="proxypass" size="20" <?php echo isset($_COOKIE["proxypass"]) ? " value=\"".(isset($_COOKIE["proxypass"])?$_COOKIE["proxypass"]:"")."\"" : ""; ?> /></td></tr>
        </table>
        </td></tr>
        </table>
        </td></tr>
        <tr><td>
        <label><input type="checkbox" name="premium_acc" id="premium_acc" onClick="javascript:var displ=this.checked?'':'none';document.getElementById('prblock').style.display=displ;"<?php if (isset($premium_acc)) print ' checked'; ?> />&nbsp;<?php echo $L->say['use_premix'];?></label>
        <table id="prblock" style="display: none;">
        <tr><td>
        <table width="150">
        <tr><td><label for="premium_user"><?php echo $L->say['_uname'];?></label></td><td><input type="text" name="premium_user" id="premium_user" size="15" onFocus="highlight(this);" /></td></tr>
        <tr><td><label for="premium_pass"><?php echo $L->say['_pass'];?></label></td><td><input type="password" name="premium_pass" id="premium_pass" size="15" onFocus="highlight(this);" style="color: #912704 ;" /></td></tr>
        </table>
        </td></tr>
        </table>
        </td></tr>
        <?php if($options["download_dir_is_changeable"]){ ?>
          <tr><td>
          <label><input type="checkbox" name="saveto" id="saveto" onClick="javascript:var displ=this.checked?'':'none';document.getElementById('path').style.display=displ;"<?php echo isset($_COOKIE["saveto"]) ? " checked" : ""; ?> />&nbsp;<?php echo $L->say['save_to'];?></label>
          <table id="path"<?php echo isset($_COOKIE["saveto"]) ? "" : " style=\"display: none;\""; ?>>
          <tr><td>
          <?php echo $L->say['save_path'];?>&nbsp;<input type="text" name="path" size="40" value="<?php echo (isset($_COOKIE["path"]) ? $_COOKIE["path"] : (substr($options["download_dir"], 0, 6) != "ftp://" ? realpath(DOWNLOAD_DIR) : $options["download_dir"])); ?>" <?php echo ($options["download_dir_is_changeable"] ? '':'readonly');?> />
          </td></tr>
          </table>
          </td></tr>
        <?php } ?>
        <tr><td>
        <label><input type="checkbox" name="savesettings" id="savesettings"<?php echo isset($_COOKIE["savesettings"]) ? " checked" : ""; ?> onClick="javascript:var displ=this.checked?'':'none';document.getElementById('clearsettings').style.display=displ;" />&nbsp;<?php echo $L->say['save_sett'];?></label>
        <table id="clearsettings"<?php echo isset($_COOKIE["savesettings"]) ? "" : " style=\"display: none;\""; ?>>
        <tr><td>
        <a href="javascript:;" onclick="clearSettings();"><?php echo $L->say['clear_sett'];?></a></td></tr>
        </table></td>
        </tr>
        <tr><td>
        <br /><small class='subtitle'><?php echo $L->say['plugin_opt'];?></small><hr />
        <label><input type="checkbox" name="dis_plug" id="dis_plug" />&nbsp;<small><?php echo $L->say['plugin_disable'];?></small></label>
        </td></tr>
        <tr><td>
        <label><input type="checkbox" name="ytube_mp4" id="ytube_mp4" />&nbsp;<small><?php echo $L->say['plugin_youtube'];?></small></label>
        </td></tr>
        <tr><td>
        <label><input type="checkbox" name="imageshack_tor" id="imageshack_tor" onClick="javascript:var displ=this.checked?'':'none';document.getElementById('tprblock').style.display=displ;"<?php if (isset($imageshack_acc)) print ' checked'; ?> />&nbsp;<small><?php echo $L->say['plugin_imageshack'];?></small></label>
        <table width="150" id="tprblock" style="display: none;">
        <tr><td><?php echo $L->say['_uname'];?>&nbsp;</td><td><input type="text" name="tor_user" id="tor_user" size="15"/></td></tr>
        <tr><td><?php echo $L->say['_pass'];?>&nbsp;</td><td><input type="password" name="tor_pass" id="tor_pass" size="15"/></td></tr>
        </table>
        </td></tr>
        <tr><td>
        <label><input type="checkbox" name="mu_acc" id="mu_acc" onClick="javascript:var displ=this.checked?'':'none';document.getElementById('mprblok').style.display=displ;"<?php if(isset($mu_cookie_user_value)) print ' checked'; ?> />&nbsp;<small><?php echo $L->say['plugin_megaupl'];?></small></label>
        <table width="150" id="mprblok" style="display: none;">
        <tr><td><?php echo $L->say['_user'];?></td><td><input type="text" name="mu_cookie" id="mu_cookie" size="45" /></td></tr>
        </table>
        </td></tr>
        <tr><td>
        <label><input type="checkbox" name="hf_acc" id="hf_acc" onClick="javascript:var displ=this.checked?'':'none';document.getElementById('hfblok').style.display=displ;"<?php if(isset($hf_cookie_auth_value)) print ' checked'; ?> />&nbsp;<small><?php echo $L->say['plugin_hotfile'];?></small></label>
        <table width="150" id="hfblok" style="display: none;">
        <tr><td><?php echo $L->say['_auth'];?></td><td><input type="text" name="hf_cookie" size="45" /></td></tr>
        </table>
        </td></tr>
        <tr><td>
        <label><input type="checkbox" name="rs_acc" id="rs_acc" onClick="javascript:var displ=this.checked?'':'none';document.getElementById('rsblok').style.display=displ;"<?php if(isset($rs_cookie_enc_value)) print ' checked'; ?> />&nbsp;<small><?php echo $L->say['plugin_rs'];?></small></label>
        <table width="150" id="rsblok" style="display: none;">
        <tr><td><?php echo $L->say['_enc'];?></td><td><input type="text" name="rs_cookie" size="45" /></td></tr>
        </table>
        </td></tr>
        <tr><td>
        <label><input type="checkbox" name="vBulletin_plug" id="vBulletin_plug" />&nbsp;<small><?php echo $L->say['plugin_buletin'];?></small></label>
        </td></tr>
        </table>
	  </div><!--  END "hide-table"; tb2  //-->
	  </form>
	  
	  <div id="tb3" class="hide-table">
      <?php if(isset($_POST["act"])){ ?>
       <tr><td align="center">
       <?php require_once(CLASS_DIR."options.php");?>
       </td></tr>
      <?php } ?>
	  <form action="" name="flist" method="post">
	  <span id="topnavi">
       <a href="javascript:;" onclick="setCheckboxes(1);"><?php echo $L->say['chk_all'];?></a>&nbsp;|&nbsp;
       <a href="javascript:;" onclick="setCheckboxes(0);"><?php echo $L->say['chk_unchk'];?></a>&nbsp;|&nbsp;
       <a href="javascript:;" onclick="setCheckboxes(2);"><?php echo $L->say['chk_invert'];?></a>&nbsp;|&nbsp;
	   <a href="javascript:;" onclick="flist_match_hide();"><?php echo $L->say['chk_txt_matches'];?></a>&nbsp;|&nbsp;
	   <a href="javascript:;" onclick='<?php echo (!$ajax_serverfiles? 'urlload()' : 'go_gLoad(150)')?>;'><?php echo $L->say['_sfrefresh'];?></a>
       <?php {
         if ($options["show_all"] === true) {
          if(!$list) unset($Path);
          ?>&nbsp;|&nbsp;<a href="javascript:;" onclick="<?php echo (!$ajax_serverfiles? 'showAll()' : 'showAll2()')?>" id="showall"><?php echo $L->say['_show']."&nbsp;";?>
<script type="text/javascript">
if(getCookie("showAll") == 1) {
  document.write("<?php echo $L->say['_downloaded'];?>");
}else {
  document.write("<?php echo $L->say['_everything'];?>");
}
</script></a>	     
         <?php
          }
           else{ if(!$list) ?>
         <script type="text/javascript">deleteCookie("showAll");</script>
         <?php } ?>
	   </span>
	   
	   <?php {
       	?>
       <div id="flist_match_hitems" style="display:none;" class="acthistory_prompt">
         <input type="text" title="<?php echo $L->say['chk_txt_matches'];?>" size="20" id="flist_match_search" onkeypress="javascript:if(event.keyCode==13){return flist_match(); }" />
         <input type="image" title="<?php echo $L->say['go_match'];?>" style="vertical-align:bottom;padding-bottom:1px;" src="<?php echo ROOT_URL.STATIC_DIR;?>images/btn_search.png" onclick="return flist_match(); return false;" />&nbsp;
         <a href="javascript:;" onclick="flist_match_hide();"><small><?php echo $L->say['close'];?></small></a>
         <div></div><span>
          <label><input type="checkbox" id="flist_match_ins" /><?php echo $L->say['match_csensitive'];?></label>
          <label><input type="checkbox" id="flist_match_hide" checked="checked" /><?php echo $L->say['match_hideunmatch'];?></label>
         </span>
       </div>
       <?php	
       	}
       } // End show_all case 
       ?>     
	  <div class="dseparator" style="height:12px"></div>
	  <?php if($ajax_serverfiles){ ?>
        <span id="tablefilewaiting" style="position:absolute;margin:-10px 0 0 30px;"></span>
        <div id="tablefilescontent" style="padding-top:5px;"></div>
      <?php } //--end ajax_serverfiles
	   else {
       $feat_ajax["ajax_delete"] = (!$options["disable_to"]["act_delete"] ? '1' : '0');

       // Show List file in table
       if($list) {
       ?>
       <div id="parentcontainer" style="padding-top:10px;"><div style="text-align:center; margin-top:-10px;"><a href="javascript:;" onclick="d=document; dcnt=d.getElementById('flcontainer'); ddcnt=d.getElementById('divcontainer'); if(dcnt) {dcnt.style.overflow='visible';d.getElementById('parentcontainer').innerHTML=ddcnt.innerHTML;};try{gosetfacebook();waitandload();}catch(e){};">release</a></div>
       <div id="divcontainer" style="width:100%; overflow:auto;">
       <table id="intbl" cellpadding="2" cellspacing="1" width="100%" class="filelist sortable">
       <thead style="width:100%; white-space:nowrap;">
       <tr valign="bottom" align="center" class="filelist_title">
       <td class="sorttable_nosort"><b class="sorttable_nosort">&nbsp;</b></td>
       <td>
       <?php if(!$options["disable_action"]) { ?>
         <select name="act" onChange="javascript:void(document.flist.submit());" style="float:left;">
          <option selected="selected"><?php echo $L->say['action'];?></option>
       <?php echo 
         (!$options["disable_to"]["act_upload"]?'<option value="upload">'.$L->say['act_upload'].'</option>':'').
         (!$options["disable_to"]["act_ftp"]?'<option value="ftp">'.$L->say['act_ftp'].'</option>':'').
         (!$options["disable_to"]["act_mail"]?'<option value="mail">'.$L->say['act_mail'].'</option>':'').
         (!$options["disable_to"]["act_boxes"]?'<option value="boxes">'.$L->say['act_boxes'].'</option>':'').
         (!$options["disable_to"]["act_split"]?'<option value="split">'.$L->say['act_split'].'</option>':'').
         (!$options["disable_to"]["act_merge"]?'<option value="merge">'.$L->say['act_merge'].'</option>':'').
         (!$options["disable_to"]["act_md5"]?'<option value="md5">'.$L->say['act_md5']." / Changer".'</option>':'').
         (!$options["disable_to"]["act_pack"]&&(@file_exists(CLASS_DIR."pear.php")||@file_exists(CLASS_DIR."tar.php")) ? "<option value=\"pack\">".$L->say['act_pack']."</option>$nn" : "").
         (!$options["disable_to"]["act_zip"]&&(@file_exists(CLASS_DIR."pclzip.php"))?"<option value=\"zip\">".$L->say['act_zip']."</option>$nn" : "").
         (!$options["disable_to"]["act_unzip"]&&(@file_exists(CLASS_DIR."unzip.php"))?"<option value=\"unzip\">".$L->say['act_unzip']."</option>$nn" : "").
         (!$options["disable_to"]["act_rename"] ? "<option value=\"rename\">".$L->say['act_rename']."</option>$nn" : "").
         (!$options["disable_to"]["act_mrename"] ? "<option value=\"mrename\">".$L->say['act_mrename']."</option>$nn" : "").
         (!$options["disable_to"]["act_delete"] ? "<option value=\"delete\">".$L->say['act_delete']."</option>$nn" : "");?>
         </select>&nbsp;&nbsp;
       <?php }?>	
       <b><?php 
       $total_files = (isset($list["files"]["totalfile"]) ? $list["files"]["totalfile"] : count($list));
       echo ($total_files>0 ? "(".$total_files.' file'.($total_files>1 ? 's' : '').') &nbsp;' : "") . $L->say['tabel_name'];?>
       </b>
       </td>
       <td><b><?php echo $L->say['tabel_sz'];?></b></td>
       <?php echo 
         (isset($_COOKIE["showAll"]) && $_COOKIE["showAll"]==1 && $options["show_column_sfile"]["md5"] ? '<td><b>' . 'MD5' . '</b></td>':'').
         (!isset($_COOKIE["showAll"]) || (isset($_COOKIE["showAll"]) && $_COOKIE['showAll']!=1) ? ($options["show_column_sfile"]["downloadlink"] ? '<td><b>'.$L->say['tabel_dl'].'</b></td>':'').
         ($options["show_column_sfile"]["comments"] ? '<td><b>'.$L->say['tabel_cmt'].'</b></td>' : '') : '').
         ($options["show_column_sfile"]["date"] ? '<td><b>'.$L->say['tabel_dt'].'</b></td>' : '').
         ($options["show_column_sfile"]["age"] ? '<td><b class="sorttable_nosort">'.$L->say['tabel_age'].'</b></td>' : '').
         ($feat_ajax["ajax_delete"]=='1' ? '<td><b class="sorttable_nosort">'.$L->say['act_del'].'</b></td>' : '')
       ?>
       </tr>
       </thead>
       <tbody id='flcontainer' style='width:100%; height:<?php echo (count($list)<13? "100%" : "280px");?>; white-space:nowrap; overflow:auto;'>
       
       <?php
        //Initiate Counter load time  
        $tabletimer = new timer();
        $tabletimer->timer();
            
        $total_files = 0; $total_size = 0; $kumulatifsz = true;
        if(isset($list["files"]["totalsize"])){
          $total_size = $list["files"]["totalsize"];
       	  $kumulatifsz = false;
        }
       
        foreach($list as $key => $file) {
           if(isset($file["name"]) && @file_exists($file["name"])) {
              $total_files++; $rnd = rand(11,99);
       	      $_fdkey = str_replace("=","", rotN(base64_encode($file["date"].':'.'4puZ'), $rnd))."-".$rnd;
       	      if($kumulatifsz) $total_size+=getfilesize($file["name"]);
              $inCurrDir = strstr(dirname($file["name"]), ROOT_DIR)!==false ? TRUE : FALSE;
              if($inCurrDir){
                $Path = parse_url($PHP_SELF);
                $Path = substr($Path["path"], 0, strlen($Path["path"]) - strlen(strrchr($Path["path"], "/")));
       		    $final_link = $Path."/".substr(dirname($file["name"]), strlen(ROOT_DIR))."/".basename($file["name"]);
              }else{
       		    $cl_Path = relink_path(DOWNLOAD_DIR, $PHP_SELF);
       		    $final_link = $cl_Path["root"]."/".$cl_Path["download"].basename($file["name"]);
       	      }
       ?>
       <tr id="brs<?php echo $total_files;?>" class="rowlist" onMouseDown="clk('cek_<?php echo $total_files;?>', this);" onMouseOut="if(document.getElementById('cek_<?php echo $total_files;?>').checked){this.className='rowlist_checked';} else{this.className='rowlist';}" align="center" title="<?php echo xmlentities(basename($file["name"]));?>">
        <td>
         <?php if((!$options["disable_to"]["act_rename"] && $ajax_rename)) {?>
         <div id="rename_container" onmouseup="ren(this, 'fn_<?php echo $total_files;?>', '<?php echo $file["date"];?>')">
		  <div class="rename_es"></div>
		 </div>
         <?php } ?>
         <input type="checkbox" name="files[]" id="cek_<?php echo $total_files;?>" value="<?php echo $file["date"];?>" onClick="clk('cek_<?php echo $total_files;?>')" />
        </td>
        <td id="fn_<?php echo $total_files;?>">
		 <b><a href="<?php echo $final_link;?>"><?php echo xmlentities(basename($file["name"]));?></a></b>
		</td>
        <td><?php echo str_replace(" ", "&nbsp;",$file["size"]);?></td>
        <?php 
        $flink = (isset($file["link"]) ? $file["link"] : "#");
        echo 
          (isset($_COOKIE["showAll"]) && $_COOKIE["showAll"]==1 && $options["show_column_sfile"]["md5"] ? "<td class=\"txtmd5\">{$file["md5"]}</td>":null).
          (!isset($_COOKIE["showAll"]) || (isset($_COOKIE["showAll"]) && $_COOKIE["showAll"]!=1) ? ($options["show_column_sfile"]["downloadlink"] ? "<td title=\"{$flink}\">".($flink ? "<a href=\"{$flink}\">".trimlink($flink)."</a>" : "").'</td>':'').
          ($options["show_column_sfile"]["comments"] ? '<td>'.(isset($file["comment"]) ? str_replace("\\r\\n", "<br />", $file["comment"]) : "").'</td>':''):'').
          ($options["show_column_sfile"]["date"] ? '<td>'.str_replace(" ","&nbsp;",date("d.m.Y H:i:s", $file["date"])).'</td>':'').
          ('<td><small>'.$file["age"].'</small></td>').
          ($feat_ajax["ajax_delete"]=="1" ? "<td><a id=\"dL-{$total_files}\" href=\"".ROOT_URL."del.php?d={$_fdkey}&amp;lineid={$total_files}\" rel=\"facebox\"> <img src=\"".IMAGE_DIR."rldel.png\" alt=\"X\" /></a></td>" : "")
        ?>
       </tr>

       <?php
       	    } // end- if file exist
        } //end foreach
       
       	$n_column = 0;
       	foreach($options["show_column_sfile"] as $cocol => $colval){
          if($colval){
       	    switch($cocol){
       	     case "ip": // add colspan when not show all & column ip shown
       		   if(!isset($_COOKIE["showAll"]) || (isset($_COOKIE["showAll"]) && $_COOKIE["showAll"]!=1))
       		   { $n_column++; }
       		 break;
       		 case "md5": // add colspan when show all & column md5 shown
       		   if(isset($_COOKIE["showAll"]) && $_COOKIE["showAll"]==1)
       		   { $n_column++; }
       		 break;
       		 case "downloadlink": // add colspan when downloadlink shown and it's in showdownloaded
       		   if(!isset($_COOKIE["showAll"]) || (isset($_COOKIE["showAll"]) && $_COOKIE["showAll"]!=1))
       		    { $n_column++; }
       		 break;
       	     default: $n_column++;
       		 break;
       	    }
       	  } //-end $colval enable
        } //-end foreach	
        $totaltime2 = $tabletimer->stop();;
       ?>
       </tbody>
       <tfoot>
       <tr id="sffooter" align='center'>
        <td>&nbsp;</td>
        <td>Total :</td>
        <td><?php 
        $total_size=(isset($list["files"]["totalsize"]) ? $list["files"]["totalsize"] : $total_size);
        $total_files = (isset($list["files"]["totalfile"]) ? $list["files"]["totalfile"] : $total_files);
        echo str_replace(" ", "&nbsp;",bytesToKbOrMbOrGb($total_size));
        $n_column = ($feat_ajax["ajax_delete"]=="1" ? ($n_column+1) : $n_column);
        ?></td>
        <?php if($n_column > 0) { ?>
		 <td colspan='<?php echo $n_column;?>'></td>
		<?php } ?>
       </tr>
       </tfoot>
       </table>
        </div>
       </div>
       <?php echo $L->sprintf( $L->say["loaded_in"], $total_files, ($total_files>1?'s':''), $totaltime2 );?>
       <script type="text/javascript">gosetfacebook();</script>
       <?php
        } //-- show files, $list not empty
		
        else{ // Not Files Found ?>
         <center><span id="nofiles"><?php echo $L->say['tabel_no_file'];?></span></center>
        <?php }
        } //--end old method listing server files
        ?>
	  </form><br />
	  <div class="acthistory_prompt rlxmode" style="background-color=#FAE5B0;font-size:85%;margin:3px 15px 3px 15px;">RL x-mode:&nbsp;
      <?php if ($userck_std_mode) { ?>
	   <b>standard</b>&nbsp;|&nbsp;<a href='<?php echo ROOT_URL.basename($PHP_SELF);?>?ajax=off&amp;ausv=<?php echo $usrajxnuid;?>' title='Disable Ajax'>basic HTML</a>
	  <?php } else { ?>
	   <a href='<?php echo ROOT_URL.basename($PHP_SELF);?>?ajax=on&amp;ausv=<?php echo $usrajxnuid;?>' title='Enable Ajax'>standard</a>&nbsp;|&nbsp;<b>basic HTML</b>
      <?php } ?>
	  </div>
	  
      <form name="frmTBLoad" id="frmTBLoad" action="">
         <input type="hidden" id="rfr" name="rfr" value="TBLoad" />
      </form>
	  
      <script type="text/javascript">
      <?php 
      echo 'set_rlxmode();';
      if($ajax_serverfiles) echo 'go_gLoad(10);';      
      ?></script>
	  
	  </div><!--  END "hide-table"; tb3  //-->
	  
	  <div id="tb4" class="hide-table">

    <div style="text-align:center">	
	<div align="center" style="clear:left;cursor:pointer;" onclick='d=document; cur=d.getElementById("lnksupport").style; if(cur.display==""){cur.display="none";}else{cur.display="";};'><span id="ww" style="font-weight:bold;width:100%;"><?php echo $L->say['work_with']?></span></div>
	<center>
	<div id="lnksupport">Axifile.com | Badongo.com | <b>Depositfiles.com</b> | <strong>Megarotic.com</strong>
	Easy-Share.com | Egoshare.com | <b>Filefactory.com</b> | <strong>Adrive.com</strong>
	Files.to | Gigasize.com | <b>Mediafire.com</b> | iFolder.ru | BitRoad.net
	<b>Megashares.com</b> | <b>Megaupload.com</b> | Mihd.net | UploadPalace.com
	Momupload.com | <b>Rapidshare.com</b> | Rapidshare.de | Shareonall.com
	Rndbload.com |  Savefile.com | <b>Sendspace.com</b> | Ziddu.com | <strong>MegaShare.com</strong>
	Speedyshare.com | Turboupload.com | Uploaded.to | Cocoshare.com 
	Uploading.com | Usaupload.net | Zshare.net | <strong>FileFront.com </strong>
	<br /><b>Kills</b><br />
	Anonym.to | Linkbucks.com | Lix.in<br />
	Rapidshare.com Folders | Usercash.com</div>	
	<form name="frmlnkchk" action="javascript:checkLink();" method="post">	
	<div align="center" style="padding-top:6px;">	
	<textarea rows="6" id="links" name="links" style='white-space:nowrap;' class="redtxtarea"></textarea><br />
	<label style="float:left;"><input type="checkbox" value="lnkcurl" name="lcurl" id="lcurl"<?php echo (($ch_curl == 1)?' checked="checked"':' disabled=disabled');?> />
	<span><?php echo $L->say['curl_stat']?>&nbsp;</span><?php echo (($ch_curl == 1) ? '<b class="g">'.$L->say['_on'].'</b>':'<b class="b">'.$L->say['_off'].'</b>');?></label>
	<label style="float:right;" onclick="chklinkOnly(document.getElementById('d').checked);"><input type="checkbox" value="d" name="d" id="d" /><?php echo $L->say['link_only']?></label>
	<div style="padding-top:20px;"></div>
	<input type="submit" value="Check Links" id="btnlnkchk" name="submit" />	
	</div>	
	</form>
</center>

	<span id="lnkwait" style="display:none;background-color:#800000;text-align:center;"><img src="<?php echo ROOT_URL.IMAGE_DIR;?>fbload.gif" border="1" alt="<?php echo $L->say['loading_pwait']?>" />&nbsp;&nbsp;<b class="o"><?php echo $L->say['loading_pwait']?></b></span>
	<div id="linkresult" align="left"></div>
	</div>
	
	  </div><!--  END "hide-table"; tb4  //-->
	  
	  <div id="tb5" class="hide-table">

    <div style="text-align:center"><center>
    <div><b><?php echo $L->say['rs_acc_chk'];?></b><br /><small>[by: reiluke; <?php echo $L->say['modded'];?> -&gt; &#73;&#100;&#111;&#101;&#110;&#107;]</small><br />
 	<form name="myform" id="myform" method="post" action="https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi" target=_blank>
	 <input type="hidden" name="login" id="login" />
	 <input type="hidden" name="username" id="username" />
	 <input type="hidden" name="password" id="password" />
	</form>
<script type="text/javascript">
function doAccChk(){
	ajxtmr = setTimeout("get('accounts','waiting','showresults','btnchkacc')", 300);
}
</script>
	<form action="javascript:doAccChk();" name="acctform" id="acctform">
     <textarea rows="4" id="accounts" class="redtxtarea"></textarea>
     <br /><small class="g"><?php echo $L->say['un_pass'];?></small>	 
     <label style="float:left;"><input type="checkbox" name="acccurl" id="acccurl"<?php echo (($ch_curl == 1)?' checked=checked':' disabled=disabled');?> />
     <span><?php echo $L->say['curl_stat']?>&nbsp;</span><?php echo (($ch_curl == 1) ? '<b class="g">'.$L->say['_on'].'</b>':'<b class="b">'.$L->say['_off'].'</b>');?></label>	 
     <label style="float:left;">&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" name="accapi" id="accapi" />
     <span><?php echo "Use rsAPI"?>&nbsp;</span></label>	 
     
     <div style="padding-top:15px;"></div>
     <input type="submit" name="button" id="btnchkacc" value="Check" onclick="document.getElementById('waiting').style.display='';" <?php echo ($ch_curl == 1)?'':'disabled';?> />
    </form>
    </div></center>

    <div><br />
     <div id="waiting" style="display:none;"></div>
     <div id="showresults"></div>
    </div>
 
    </div>
	
	  </div><!--  END "hide-table"; tb5  //-->
	 
	 
	 
	 
	 
	</div><!--  END "tb_content"  //-->

<script type="text/javascript">
<?php
if(isset($_REQUEST["act"]) || isset($_REQUEST["ajax"])){
   echo "switchCell(3);";
}else{
   echo "switchCell(1);";
}
?>
var show = 0;
var show2 = 0;
</script>
	
   </div><!--  END "mid_side"  //-->
   
   
   
   
   <div class="right_side">   
<!--Rightside You may place ashoutbox iframe here -->
   </div><!--  END "right_side"  //-->
   
<form action="javascript:doStatacc();" name="poiuy" id="poiuy">
  <input type="hidden" id="staccounts" value="lol" />
</form>
   
 </div><!--  END "container"  //-->
  </center>
  
</div><!--  END "bodycontainer"  //-->

<div align="center">
<?php
$CNfo = "<hr \/>";
if($showAccRsStatus){ // this mean == ($ch_curl == 1 && $exist_accrs && $options["premix_status"])
 $CNfo.= "<div id=\"refresh\" style=\"float:right;\">&nbsp;<a href=\"javascript:;\" title=\"{$L->say['_refresh']} acc status\" onclick=\"stacc();this.blur();\"><small>{$L->say['_refresh']}<\/small><\/a><\/div><div id=\"accshowresults\" style=\"display:none;\"><\/div><div id=\"accwaiting\" align=\"center\" style=\"display:none;\" title=\"".$L->say['loading_pwait']."\"><\/div><hr \/>";
}
if($options["auto_del_time"]>0){
	$autodel_unit_time = $L->say['hours'];
	if($options["auto_del_time"]<1) {
	  $options["auto_del_time"] = floor(60 * $options["auto_del_time"]);
      $autodel_unit_time = $L->say['minutes'];
	}
	$CNfo.= "<span class=\"c\">*{$L->say['_autodel']}:&nbsp;<b class=\"g\">{$options["auto_del_time"]}<\/b>&nbsp;{$autodel_unit_time}<\/span>";
}
if($options["limitsize"]>0){
  $CNfo.= "<br \/><span class=\"c\">*{$L->say['_maxfilesize']}:&nbsp;<b class=\"s\">{$options["limitsize"]}<\/b>&nbsp;MB<\/span>";
}
if($options["lowlimitsize"]>0)	{
  $CNfo.= "<br \/><span class=\"c\">*{$L->say['_minfilesize']}:&nbsp;<b class=\"s\">{$options["lowlimitsize"]}<\/b>&nbsp;MB<\/span>";
}
if($options["downloadLimitbyip"] && $options["downloadsPerIP"] > 0){
  $CNfo.= "<br \/><span class=\"c\">*{$L->say['_limitip']}:&nbsp;<b class=\"s\">{$options["downloadsPerIP"]}<\/b> per <b class=\"s\">{$options["downloadDelayPerIP"]}<\/b>s<\/span>";
}
//if($options["pointboost"]>0){
//  $CNfo.= "<br \/><span class=\"c\">*{$L->say['_pointboost']}:&nbsp;<b class=\"s\">{$L->say['_on']}<\/b><\/span>";
//}
if(!empty($options["add_ext_5city"])){
  $CNfo.= "<br \/><span class=\"c\">*{$L->say['_fakeext']}:&nbsp;<b><a style=\"color:red\" href=\"javascript:;\" title=\"{$L->say['_fakeext_desc']}\">{$options["add_ext_5city"]}<\/a><\/b><\/span>";
}
if(strstr($CNfo,"<span")) $CNfo.= "<hr \/>";

echo "<script type=\"text/javascript\">\nfunction showaccdiv(){\n  embedaccnfo(document.getElementById('plusmin'));\n}
\nfunction embedaccnfo(Obj){\ntxt=\"&nbsp;embed&nbsp;acc&nbsp;\";cntent=document.getElementById(\"otheracc\");if(cntent.style.display==\"none\"){cntent.style.display=\"\";Obj.innerHTML=txt+\"&#8212;&nbsp;\";}else{cntent.style.display=\"none\";Obj.innerHTML=txt+\"&#43;&nbsp;\";}}</script>\n";
if(isset($premium_acc) && isset($acc_txt) && $acc_txt!=''){
 $CNfo.="<div class=\"acthistory_prompt\" style=\"text-align:left;margin-top:0px;padding:0;position:absolute;\" onMouseOut=\"showaccdiv()\" onMouseOver=\"showaccdiv()\"> <small><label> <span id=\"plusmin\"> &nbsp;embed&nbsp;acc&nbsp;&#43;&nbsp;<\/span><\/label><div id=\"otheracc\" style=\"display:none; padding:1px 10px 3px 8px; line-height:10px; text-align:left;margin-top:0px;color:#fff;background:#800000;\">";
 $CNfo.= $acc_txt;
 $CNfo.="<\/div><\/small><\/div>";
}
//--end acc NFO

if(strstr($CNfo,"<span")){
  echo "<script type=\"text/javascript\">
  var divnfo = document.getElementById('nfoconfig');
  divnfo.innerHTML = '".$CNfo."';\n
  divnfo.style.display='';\n";
  if($showAccRsStatus) echo 'doStatacc();';
  echo "\n</script>";
}
?><hr />
</div>














<?php echo "\r\n\r\n";?>